package operation;

import book.Book;
import book.BookList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: GodK
 * Date: 2024-03-13
 * Time: 16:48
 */
public class ShowOperation implements IOPeration{
    public void work(BookList bookList){
        int currentSize = bookList.getUsedSize();
        for (int i = 0; i < currentSize; i++) {
            Book book = bookList.getBooK(i);
                System.out.println(book);
        }
    }
}
